package com.tuo51.evaluate.domain.news;

import com.tuo51.foudation.model.Domain;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Data
@Entity
@Table(name = "news")
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
public class ArticleListItem extends Domain {

    @Column(columnDefinition = " varchar(128)  COMMENT '标题'")
    private String title;

    @Column(name = "sub_title", columnDefinition = " varchar(128)  COMMENT '子标题'")
    private String subTitle;

    @Column(name = "ext_flag", columnDefinition = " varchar(45)  COMMENT '扩展标记'")
    private String extFlag;

    @Column(name = "category_id", columnDefinition = " varchar(32)  COMMENT '分类id'")
    private String categoryId;

    @Column(name = "categories", columnDefinition = " varchar(45)  COMMENT '分类名称'")
    private String categories;

    @Column(name = "channel", columnDefinition = " varchar(45)  COMMENT '渠道'")
    private String channel;

    @Column(name = "cover_url", columnDefinition = " varchar(512)  COMMENT '图片地址'")
    private String coverURL;

    @Column(columnDefinition = "varchar(512)  COMMENT '标签'")
    private String tags;

    @Column( name = "link_url", columnDefinition = "varchar(512)  COMMENT '链接地址'")
    private String linkURL;

    @Column( name = "article_id", columnDefinition = "varchar(32)  COMMENT '文章id'")
    private String articleId;

    @Column( name = "order_weight", columnDefinition = "int(11) default 0  COMMENT '排序权重'")
    private int orderWeight;

    @Column(columnDefinition = " bit DEFAULT 0 COMMENT '是否只有vip可见 0：否，1是' ")
    private Boolean vip = false;
}
